package laf.ui;

import java.util.List;

import laf.agents.LanguageSymbolDictionary;
import laf.env.AttributeIdentifier;
import laf.env.AttributeValue;
import laf.env.Enviroment;
import laf.lang.Symbol;

import org.jfree.data.category.CategoryDataset;
import org.jfree.data.category.DefaultCategoryDataset;
import org.jfree.data.general.DatasetChangeListener;
import org.jfree.data.general.DatasetGroup;

public class CorrelationCategoryDataset extends DefaultCategoryDataset {

	public CorrelationCategoryDataset(Symbol symbol, AttributeIdentifier attrId, LanguageSymbolDictionary dict) {
		for (AttributeValue attrVal : Enviroment.getInstance().getAttribute(attrId).getValues()) {
			addValue(dict.getCorrelation(symbol, attrVal), symbol, attrVal);
		}
	}

}
